<?php

include_once "../magic/magic.php";
$magic = new magic(
    array(
        // 模板文件目录
        'dir_template' => 'theme/admin/',
        'cache' => true
    )
);

$magic-> assign(
    "dir_template", $magic->getConfig("dir_template")
);
$magic-> assign('result', array(
    "a" => "张三1",
    "b" => "李四", 
    "c" => "王五",
    "list" => array(
        "h1" => "h1h1h1",
        "h2" => "h2h2h2"
    )
));

$magic->display('login');